package com.cl.entity;

import javax.persistence.*;

import com.cl.entity.common.DataEntity;

import java.math.BigDecimal;


/**
 * The persistent class for the CONTRIBUTION_UK database table.
 * 
 */
@Entity
@Table(name="CONTRIBUTION_UK")
public class ContributionUk extends DataEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONTRIBUTION_UK_CONID_GENERATOR", sequenceName="CONTRIBUTION_UK_SEQ",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONTRIBUTION_UK_CONID_GENERATOR")
	@Column(name="CON_ID")
	private Long conId;

	@Column(name="CON_AUTHOR")
	private String conAuthor;

	@Column(name="CON_CLASS")
	private String conClass;

	@Column(name="CON_ERA")
	private String conEra;

	@Column(name="CON_NAME")
	private String conName;

	@Column(name="CON_OBJID")
	private BigDecimal conObjid;

	@Column(name="CON_OBJNO")
	private String conObjno;

	@Column(name="ERA_ID")
	private BigDecimal eraId;

	@Column(name="OBJ_ID", nullable = false)
	private BigDecimal objId;

	public ContributionUk() {
		super();
		this.objId = new BigDecimal(0);
	}

	public Long getConId() {
		return this.conId;
	}

	public void setConId(Long conId) {
		this.conId = conId;
	}

	public String getConAuthor() {
		return this.conAuthor;
	}

	public void setConAuthor(String conAuthor) {
		this.conAuthor = conAuthor;
	}

	public String getConClass() {
		return this.conClass;
	}

	public void setConClass(String conClass) {
		this.conClass = conClass;
	}

	public String getConEra() {
		return this.conEra;
	}

	public void setConEra(String conEra) {
		this.conEra = conEra;
	}

	public String getConName() {
		return this.conName;
	}

	public void setConName(String conName) {
		this.conName = conName;
	}

	public BigDecimal getConObjid() {
		return this.conObjid;
	}

	public void setConObjid(BigDecimal conObjid) {
		this.conObjid = conObjid;
	}

	public String getConObjno() {
		return this.conObjno;
	}

	public void setConObjno(String conObjno) {
		this.conObjno = conObjno;
	}

	public BigDecimal getEraId() {
		return this.eraId;
	}

	public void setEraId(BigDecimal eraId) {
		this.eraId = eraId;
	}

	public BigDecimal getObjId() {
		return this.objId;
	}

	public void setObjId(BigDecimal objId) {
		this.objId = objId;
	}

	@Override
	public Object getPrimaryId() {
		// TODO Auto-generated method stub
		return this.conId;
	}


}